package com.leoman.work.service;

import com.leoman.common.service.GenericManager;
import com.leoman.work.entity.WorkCreator;

import java.util.List;

/**
 * Created by 蔡琦 on 2016/6/15 0015.
 *
 */
public interface WorkCreatorService extends GenericManager<WorkCreator> {

    // 根据用户id查询对应的作品
    List<WorkCreator> findByUserId(Long userId);

    // 根据作品id查询对应的主创
    List<WorkCreator> findWorkId(Long workId);
}
